<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>DOM</title>
  
</head>
<body>
  示例：
 <div>
    <div id="test">
      <span>test1</span>test
      <p class="red">段落标签1</p>
    </div>
  
  <div id="test2"><p class="red">段落标签</p>test</div>

</div>

    <div id="empty">
      <div id="e1"></div>
      <div id="e2"></div>
      <div id="e3"></div>
    </div>
    <div id="siblings">
      <div id="s1"></div>
      <div id="s2"></div>
      <div id="s3"></div>
      <div id="s4"></div>
      <div id="s5"></div>
    </div>
    <div id="travel">
      <div id="t1">t1</div>
      <div id="t2">t2</div>
      <div id="t3">t3</div>
      <div id="t4">t4</div>
      <div id="t5">t5</div>
    </div>
    

    <script src="try.js"></script>

  <!-- <script src="dom.js"></script>
  <script src="main.js"></script> -->
</body>
</html>